﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BooksOnline.Models.Entities;
using FluentNHibernate.Mapping;

namespace BooksOnline.Model.Mappings
{
    public class PurchaseMapping : ClassMap<Purchase>
    {
        public PurchaseMapping()
        {
            Table("Purchase");
            Id(a => a.Id);
            Map(a => a.Date);
            Map(a => a.Quantity);
            Map(a => a.ServiceTax);
            Map(a => a.Shipping);
            References(a => a.Book);
            References(a => a.Customer);
            References(a => a.Distributor);
        }
    }
}
